package com.woniu.zhoukao.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.zhoukao.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.zhoukao.vo.MyOrderVO;
import com.woniu.zhoukao.vo.OrderPreviewVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuao
 * @since 2023-02-07 09:47:30
 */
public interface OrderService extends IService<Order> {
    OrderPreviewVo queryOrderPreview(Integer userId, Integer[] productIds);

    void createOrder(Integer userId, Integer[] productIds, Integer addressId);

    Page<MyOrderVO> pageQuery(Integer userId, Integer currentPage, Integer pageSize);
}
